Skip to main content
This guide will walk you through setting up your first agent and getting it running end-to-end.
After completing this quickstart, you’ll have a working agent and know where to go next based on your use case.

Prerequisites

  • API access credentials
  • Development environment set up
  • Basic understanding of REST APIs
1

Create a Project in the Corti Console

Start by creating a project in the Corti console. This gives you a workspace and access to manage your clients and credentials. If you haven’t set up authentication before, follow the Creating Clients and authentication quickstart guides.
2

Create Your First Agent

Use the Corti Agentic API to create your first agent. You’ll need an access token (obtained using your client credentials) and your tenant name.
import { CortiClient } from "@corti/sdk";

const client = new CortiClient({
    tenantName: "YOUR_TENANT_NAME",
    environment: "YOUR_ENVIRONMENT_ID",
    auth: {
        clientId: "YOUR_CLIENT_ID",
        clientSecret: "YOUR_CLIENT_SECRET",
    },
});

const myAgent = await client.agents.create({
    name: "My First Agent",
    description: "A simple agent to get started with the Corti Agentic Framework",
});
3

Run Your Agent

Use your stored credentials to authenticate, then run your agent end-to-end and verify it processes input and returns the expected outputs.
const agentResponse = await client.agents.messageSend(myAgent.id, {
    message: {
        role: "user",
        parts: [{
            kind: "text",
            text: "Hello there. This is my first message.",
        }],
        messageId: crypto.randomUUID(),
        kind: "message",
    },
});

console.log(agentResponse.task.status.message.parts[0].text);

Next Steps

Depending on your use case:
Please contact us if you need more information about the Corti Agentic Framework.